//
//  YYListModel.m
//  KMedicine
//
//  Created by song on 16/7/8.
//  Copyright © 2016年 caomu. All rights reserved.
//

#import "YYListModel.h"

@implementation YYListModel

+ (instancetype)listModelWithDict:(NSDictionary *)dict{
    YYListModel *model = [YYListModel new];
    [model setValuesForKeysWithDictionary:dict];
    return model;
}


- (void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:_time forKey:@"time"];
    [aCoder encodeObject:_illName forKey:@"illName"];
    [aCoder encodeObject:_illbase forKey:@"illbase"];
    [aCoder encodeObject:_illDetail forKey:@"illDetail"];
    [aCoder encodeObject:_illImage forKey:@"illImage"];
}
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder{
    if (self = [super init]) {
        
        self.time = [aDecoder decodeObjectForKey:@"time"];
        self.illName = [aDecoder decodeObjectForKey:@"illName"];
        self.illbase = [aDecoder decodeObjectForKey:@"illbase"];
        self.illDetail = [aDecoder decodeObjectForKey:@"illDetail"];
        self.illImage = [aDecoder decodeObjectForKey:@"illImage"];
        
    }
    return self;
}

@end
